package com.qm.struts.login;

import com.opensymphony.xwork2.Action;
import com.qm.hibernate.TuserDAO;

public class ModifyPassAction implements Action{
	private String email ;
	private String password;
	private String newPassword;
	private String confirm;
	public String getEmail()
	{
		return email;
	}
	public void setEmail(String email)
	{
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public String getConfirm() {
		return confirm;
	}

	public void setConfirm(String confirm) {
		this.confirm = confirm;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		
		TuserDAO td = new TuserDAO();	
        td.updatePassword(getEmail(),getNewPassword());
        
		return SUCCESS;
	}
}
